<?php 
/**
* @package DomDB.Test
* @author Oliver Leisalu
*/
class DomDBTestListObject extends DomDBObject {
	
	protected $name;

	protected $list;
	protected $linkList;
	protected $orderedList;
	protected $orderedLinkList;
	
	public function __construct( $name ) {
		$this->list = new DomDBList( $this, 'list');
		$this->linkList = new DomDBLinkList( $this, 'linkList');
		$this->orderedList = new DomDBOrderedList( $this, 'orderedList');
		$this->orderedLinkList = new DomDBOrderedLinkList( $this, 'orderedLinkList');

	}
	
	public static function serializeMetadata() {
		DomDBMetadata::installMetadata( __CLASS__, array(
			new DomDBField_Field('name','text'),
			new DomDBField_List('list','DomDBTestObject'),
			new DomDBField_LinkList('linkList','DomDBTestObject'),
			new DomDBField_OrderedList('orderedList','DomDBTestObject'),
			new DomDBField_OrderedLinkList('orderedLinkList','DomDBTestObject'),
			
		), array());
	}

}
?>